/*************************************************************************
  > File Name: 05.odd_evn.c
  > Author: icebear
  > Mail: 3322366195@qq.com
  > Created Time: Tue 18 Jul 2023 12:12:59 PM UTC
 ************************************************************************/

#include <stdio.h>
int main()
{
    int odd_count=0,odd_sum=0,evn_count=0,evn_sum=0;
    int input_num=1;
    while(input_num)
    {
        printf("input integer\n");
        scanf("%d",&input_num);
        printf("you input is %d\n",input_num);
        if(input_num%2==0)
        {
            evn_count++;
            evn_sum+=input_num;
        }
        else
        {
            odd_count++;
            odd_sum+=input_num;
        }
    }
    evn_count--;
    printf("evn: count is %d ,average is %d \nodd: coount is %d,average is %d\n",evn_count,evn_sum/evn_count,odd_count,odd_sum/odd_count);
}
